#ifndef QMLLOADER_H
#define QMLLOADER_H

#include <QDeclarativeEngine>
#include <QDeclarativeItem>
#include <QDeclarativeComponent>

class QmlLoader
{
public:
    QmlLoader(QDeclarativeEngine &engine);

    QDeclarativeItem* createNode(QDeclarativeItem* parent);
    QDeclarativeItem* createItem(QDeclarativeItem* parent);

private:
    QDeclarativeEngine *mEngine;

    QDeclarativeComponent mNodeComp;
    QDeclarativeComponent mItemComp;
};

#endif // QMLLOADER_H
